# -*- encoding:utf-8 -*-
# !/usr/bin/env python
'''
    python-0805-05.py
    ======================
    @descript: 形参的运行过程
    @copyright:nnz
    @author:dln
    @date: 2021/8/5 18:51
    @version:v1.0
'''
def f_01(p_01,p_02):
    print(p_01)
    print(p_02)
    pass
f_01(1,2)

#调换两个值
v_int01=1
v_int02=2
def f_02(p_03,p_04):
    v_int03=p_03
    p_03=p_04
    p_04=v_int03
    print(p_03,p_04)
    pass
f_02(v_int01,v_int02)
#默认参数值
def f_03(p_01=[]):
    p_01.append('aaa')
    for element in p_01:
     print(element)
    pass
print()
print('*'*60)
f_03([1,2])
print('*'*60)
f_03([1])
print('*'*60)
f_03()

def f_04(p_01=None):
    if p_01 is None:
        p_01=[]
        pass
    p_01.append('789')
    for element in p_01:
        print(element)
        pass
f_04()
print('*'*50)
f_04()
print('*'*50)
f_04()
print('*'*50)
f_04()